package com.jule.chat.network.handler;

import com.jule.chat.network.protocol.Request;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author xujian
 */
public class FunctionHandler extends SimpleChannelInboundHandler<Request> {
    private final static Logger logger = LoggerFactory.getLogger(FunctionHandler.class);

    @Override
    protected void channelRead0(ChannelHandlerContext ctx, Request msg) {
        msg.run();
    }
}
